//
//  ModelOfEntryCommend.m
//  FreeTravel
//
//  Created by 徐康 on 16/8/31.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfEntryCommend.h"

@implementation ModelOfEntryCommend
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"type"]) {
        self.type = [value integerValue];
    }if ([key isEqualToString:@"title"]) {
        self.title = value;
    }
    if ([key isEqualToString:@"column"]) {
        self.column = value;
    }
    if ([key isEqualToString:@"url"]) {
        self.url = value;
    }
    if ([key isEqualToString:@"cover"]) {
        self.cover = value;
    }if ([key isEqualToString:@"subject"]) {
        self.subject = value;
    }if ([key isEqualToString:@"icon_url"]) {
        self.icon_url = value;
    }if ([key isEqualToString:@"author"]) {
        self.username = [value objectForKey:@"username"];
        self.pic = [value objectForKey:@"pic"];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.ID = [value integerValue];
    }
}
@end
